From: Stephan Mueller Date: Wed, 19 Aug 2015 06:42:07 +0000 (+0200) Subject: crypto: cmac - allow usage in FIPS mode X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~3577^2~23 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=8f183751a8604be5aaf0ad6dedac4890bb6fa0d5;p=linux-4.9.git crypto: cmac - allow usage in FIPS mode CMAC is an approved cipher in FIPS 140-2. The patch allows the use of CMAC with TDES and AES in FIPS mode. Signed-off-by: Stephan Mueller Signed-off-by: Herbert Xu --- diff --git a/crypto/testmgr.c b/crypto/testmgr.c index d0a42bd3aae9..a865ea99a057 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2476,6 +2476,7 @@ static const struct alg_test_desc alg_test_descs[] = { } }, { .alg = "cmac(aes)", + .fips_allowed = 1, .test = alg_test_hash, .suite = { .hash = { @@ -2485,6 +2486,7 @@ static const struct alg_test_desc alg_test_descs[] = { } }, { .alg = "cmac(des3_ede)", + .fips_allowed = 1, .test = alg_test_hash, .suite = { .hash = {